package jdbc.three.service;

import jdbc.three.beans.Account;
import jdbc.three.exception.QueryMoneyEx;
import jdbc.three.exception.TransferEx;

import java.sql.SQLException;

public interface AccountService {
    boolean register(Account a)throws SQLException;
    double queryMoney(int id)throws QueryMoneyEx;
    boolean transferMoney(int from,int to,double m)throws TransferEx,SQLException;
}
